package dao;

import bean.Product;

import java.util.List;

public class productDao extends BaseDao<Product> {
    public List<Product> findAllProduct(){
        String sql="SELECT * FROM product;";
        return myselesct_multi(sql,Product.class );
    }
    public Product findProductByPid(int pid){
        String sql="SELECT * FROM product where pid=?";
        return myselect_one(sql,Product.class ,pid);
    }
}
